﻿
<div ms-controller="W_KJFS">
    <div class="row" style="margin-left: 15px;margin-right: 15px;">
        <div class="col-md-4">
            <div class="panel panel-default" ms-click="sel('0')">
                <div class="panel-heading">收入待审核数量</div>
                <div class="panel-body" style="font-size: 26px; color: #12b8f6;cursor:pointer">
                    {{srdsh}}
                </div>
            </div>

        </div>
        <div class="col-md-4">
            <div class="panel panel-default" ms-click="sel('1')">
                <div class="panel-heading">支出待审核数量</div>
                <div class="panel-body"  style="font-size: 26px; color: #12b8f6;cursor:pointer">
                    {{zcdsh}}
                </div>
            </div>

        </div>
        <div class="col-md-4">
            <div class="panel panel-default" ms-click="sel('2')">
                <div class="panel-heading">一览表待审核数量</div>
                <div class="panel-body"  style="font-size: 26px; color: #12b8f6;cursor:pointer">
                    {{ylbsh}}
                </div>
            </div>

        </div>
        <!--<div class="col-md-4">
            <div class="panel panel-default">
                <div class="panel-heading">待交单数量</div>
                <div class="panel-body">
                    20
                </div>
            </div>

        </div>
        <div class="col-md-4">
            <div class="panel panel-default">
                <div class="panel-heading">待收单数量</div>
                <div class="panel-body">
                    20
                </div>
            </div>

        </div>-->
    </div>

</div>



<script>

    var tempindex = avalon.define({
        $id: "W_KJFS",
        seltag: "",
        srdsh: "0",
        zcdsh: "0",
        ylbsh:"0",
        InitWigetData: function () {
            //收入
            $.getJSON('/API/VIEWAPI.ashx?Action=JHSR_GETSHMXLIST', { P1: model.JHDATA.ID, P2: "0" }, function (resultData) {
                if (resultData.ErrorMsg == "") {
                    tempindex.srdsh = resultData.Result.length;
                }
            })
            $.getJSON('/API/VIEWAPI.ashx?Action=JHZC_GETSHMXLIST', { P1: model.JHDATA.ID, P2: "0" }, function (resultData) {
                if (resultData.ErrorMsg == "") {
                    tempindex.zcdsh = resultData.Result.length;
                }
            })
            $.getJSON('/API/VIEWAPI.ashx?Action=ZCZX_GETJHYLBLIST', { P2: model.JHDATA.ID, P1: "0" }, function (resultData) {
                if (resultData.ErrorMsg == "") {
                    tempindex.ylbsh = resultData.Result.length;
                }
            })
        },
        sel: function (type) {
            if (type=="0") {
                model.ChangePage({ PageCode: "/ViewV5/AppPage/JHSR/JHSH_MXLIST", ExtData: "", code: "JHSR", PageName: "收入审核", issel: true, isshow: true, order: 0 });
            }
            if (type == "1") {
                model.ChangePage({ PageCode: "/ViewV5/AppPage/JHZC/JHSH_MXLIST", ExtData: "", code: "JHZC", PageName: "收入审核", issel: true, isshow: true, order: 0 });
            }
            if (type == "2") {
                model.ChangePage({ PageCode: "/ViewV5/AppPage/ZCZX/ZC_SHMXLIST", ExtData: "", code: "ZCZX", PageName: "收入审核", issel: true, isshow: true, order: 0 });
            }
        },
    })
    //# sourceURL=KJFS.js;
</script>



